/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
             var xmlHttp;
      function showCity(str){
      if (typeof XMLHttpRequest != "undefined"){
        xmlHttp= new XMLHttpRequest();
        }
      else if (window.ActiveXObject){
        xmlHttp= new ActiveXObject("Microsoft.XMLHTTP");
        }
      if (xmlHttp==null){
      alert("Browser does not support XMLHTTP Request")
      return;
      }
      var url="city.jsp";
      url +="?count=" +str;
      xmlHttp.onreadystatechange = cityChanged;
      xmlHttp.open("GET", url, true);
      xmlHttp.send(null);
      }
      function cityChanged(){
      if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
      document.getElementById("city").innerHTML=xmlHttp.responseText
      }
      }

